Skip to main content

Keeper

This document describes the keeper interface of the icacontrol module.


Zone

zone.go accesses information about the zone associated with Supernova.

RegisterZone

func (k Keeper) RegisterZone(ctx sdk.Context, zone *types.RegisteredZone) {}

RegisterZone stores metadata for the new zone.

GetRegisteredZone

func (k Keeper) GetRegisteredZone(ctx sdk.Context, zoneId string) (types.RegisteredZone, bool) {}

GetRegisteredZone gets information about the stored zone that fits the zoneId.

DeleteRegisteredZone

func (k Keeper) DeleteRegisteredZone(ctx sdk.Context, zoneId string) {}

DeleteRegisteredZone deletes zone information corresponding to zoneId.

IterateRegisteredZones

func (k Keeper) IterateRegisteredZones(ctx sdk.Context, fn func(index int64, zoneInfo types.RegisteredZone) (stop bool)) {}

IterateRegisteredZones navigates all registered zones.

GetRegisteredZoneForValidatorAddr

func (k Keeper) GetRegisteredZoneForValidatorAddr(ctx sdk.Context, validatorAddr string) *types.RegisteredZone {}

GetRegisteredZoneForValidatorAddr returns information about the correct zone using the validator address of the counterpart chain.

GetZoneForDenom

func (k Keeper) GetZoneForDenom(ctx sdk.Context, denom string) *types.RegisteredZone {}

GetZoneForDenom returns information about the zone that matches denom.

GetRegisterZoneForPortId

func (k Keeper) GetRegisterZoneForPortId(ctx sdk.Context, portId string) (*types.RegisteredZone, bool) {}

GetRegisterZoneForPortId returns the appropriate Zone information for portId.

GetRegisterZoneForHostAddr

func (k Keeper) GetRegisterZoneForHostAddr(ctx sdk.Context, hostAddr string) (*types.RegisteredZone, bool) {]

GetRegisterZoneForHostAddr returns the appropriate Zone information for host address.

GetsnDenomForBaseDenom

func (k Keeper) GetsnDenomForBaseDenom(ctx sdk.Context, baseDenom string) string {}

GetsnDenomForBaseDenom returns an appropriate pair of sn-Token denom for BaseDenom. For example, uatom -> snatom.

GetBaseDenomForSnDenom

func (k Keeper) GetBaseDenomForSnDenom(ctx sdk.Context, snDenom string) string {}

GetBaseDenomForSnDenom returns an appropriate pair of BaseDenom for snDenom. For example, snatom -> uatom.

DenomDuplicateCheck

func (k Keeper) DenomDuplicateCheck(ctx sdk.Context, baseDenom string) string {}

'DenomDuplicateCheck' checks if a currently registered denom exists and returns denom.

GetIBCHashDenom

func (k Keeper) GetIBCHashDenom(portId, chanId, baseDenom string) string {}

GetIBCHashDenom uses baseDenom and portId and channelId to create the appropriate IBCdenom.


Send Msgs

send_msgs.go sends an ICA message.

SendIcaTx

func (k Keeper) SendIcaTx(ctx sdk.Context, controllerId, connectionId string, msgs []sdk.Msg) error {}